# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=brillo
pkgver=1.4.9
pkgrel=1
pkgdesc="Control the brightness of backlight and keyboard LED devices"
options="!check"
url="https://gitlab.com/cameronnemo/brillo"
arch="all"
license="0BSD"
makedepends="go-md2man"
checkdepends="valgrind"
subpackages="$pkgname-doc"
source="https://gitlab.com/cameronnemo/brillo/-/archive/v$pkgver/brillo-v$pkgver.tar.gz"
builddir="$srcdir/brillo-v$pkgver"

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" install install.polkit
}

sha512sums="444f173bf6d1bcbb1598979e906656adf322e036372ac11553e23152d3bfc3b8c0aa5839e2069e095eafab3993a975e4247418f3828760c9c3cd29a6a092327b  brillo-v1.4.9.tar.gz"
